/***
*
* File: wp_vehicle.nut
* Auth: Damian Wojdat
* Date: 20.10.2012
* Desc: Functions related to vehicles including default events.
*
*************************************************************************************************************/

function onVehicleRespawn(vehicleid)
{
	setVehicleCoordinates(vehicleid, vehData[vehicleid].posX, vehData[vehicleid].posY, vehData[vehicleid].posZ);
	setVehicleRotation(vehicleid, 0.0, 0.0, vehData[vehicleid].posAngle);
	return 1;
}
addEvent("vehicleRespawn", onVehicleRespawn);